package com.material.controller.supplier;

import com.material.buy.domain.VipPackage;
import com.material.buy.service.IVipPackageService;
import com.material.common.entity.ResultResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ganxinge
 */
@Api(tags = "6.服务套餐")
@RestController
@RequestMapping("/vipPackage")
public class VipPackageController {

    @Autowired
    private IVipPackageService vipPackageService;

    @ApiOperation("服务套餐列表")
    @GetMapping("/list")
    public ResultResponse list(){
        VipPackage vipPackage = new VipPackage();
        vipPackage.setDeleteFlag(1);
        List<VipPackage> vipPackages = vipPackageService.selectVipPackageList(vipPackage);
        return ResultResponse.success(vipPackages);
    }
}
